package com.example.yuejian.yuejian.service;

import com.example.yuejian.yuejian.bean.UploadImage;

import okhttp3.MultipartBody;
import okhttp3.RequestBody;
import retrofit2.Call;
import retrofit2.http.Multipart;
import retrofit2.http.POST;
import retrofit2.http.Part;

/**
 * Created by Administrator on 2017/10/17.
 */

public interface ImageUploadService {


    @Multipart
    @POST("addphoto")
    Call<UploadImage> uploadPhoto (
            @Part("title") RequestBody title,
            @Part("users_id") RequestBody userid,
            @Part("club_id") RequestBody clubid,
            @Part MultipartBody.Part image
    );
}
